Adobe Systems Incorporated [Navigation Bar]
What's New Products Solutions Studio Support & Service About Adobe Main Topics


INTRODUCTION
 
DEFINING THE PROBLEM
Recognizing Symptoms
Win95 Error Messages
 
RESPONDING TO ERRORS
 
TROUBLESHOOTING STEPS
Common Causes
Hardware Conflicts
Reinstall Application
Install New System
Consult Expert
 
WIN95 MAINTENANCE
Older Software
Managing Memory
Win95 Utilities
Registry


Windows 95 Memory Management

The memory on your computer is composed of two basic parts, RAM (Random Access Memory) and Virtual Memory. RAM, which is also called physical memory, consists of memory chips called SIMMs (Single Inline Memory Modules) or DIMMs (Dual Inline Memory Modules) which are installed on the mother board (or main logic board) of your computer. RAM is where your computer's processor accesses data.

In simplest terms, the more RAM you have, the more programs you can run concurrently. A minimum of 16 MB is recommended, although, if you're running larger, graphics-intensive programs like Adobe Photoshop, PageMaker, or Illustrator, you should have at least 24 MB of RAM. If you encounter error messages about insufficient memory, your best option is to increase the RAM in your computer.

To find out how much RAM is installed on your computer

  1. Right-click on the "My Computer" icon and choose Properties.
  2. Click on the Performance tab.

The amount of installed RAM displays as the first item under Performance Status

Virtual Memory enables you to extend your RAM by using free space on your hard drive as a swap file (a place for temporarily storing parts of a program in memory). Windows 95 does not require Virtual Memory to run, but Virtual Memory is an important aspect of how Windows 95 manages memory and its importance increases if you only have a small amount of physical memory (e.g., 16 MB or less). Windows 95's Virtual Machine Manager (VMM) swaps data back and forth between RAM and Virtual Memory using a sophisticated process called memory paging. The performance of Virtual Memory can be affected by its settings, the amount of free space available on the hard drive where its swap file resides, and the access speed of your hard disk. Too little free space on the hard disk will restrict the maximum size of the swap file and if the access speed (i.e., the time, measured in milliseconds, that it takes to access data from the disk) is too slow, the time it takes to process data will increase.

Viewing Memory Usage
To see how your computer's memory is being used, open Windows 95's System Monitor.

  1. Choose Start > Programs > Accessories > System Tools > System Monitor.

    NOTE: System Monitor is not installed in Windows 95 by default. If it does not appear in your System Tools menu, you must install it from your Windows 95 software disks or CD-ROM.

  2. In the System Monitor window select the leftmost icon on the menu bar.

  3. In the Add Item dialog box, select Memory Manager under Category.
  4. Hold down the Ctrl key and Select Allocated Memory, Free Memory, and Swapfile Size under Item.

  5. Click OK.

Once you've done this, System Monitor will display an ongoing record of

  • how much memory is currently allocated to the system and programs.
  • how much physical memory (i.e., RAM) is free.
  • the size of your swap file.

You can view this record as a graph

as a bar chart

or as numerical values

The display is updated periodically. You can change the update interval by choosing Options > Chart and moving the slider in the Options dialog box.

NOTE: The default interval is 3 seconds.

If you are only running Windows 95-compliant programs the information above is all you need to know about memory management. If you run DOS programs, 16-bit Windows programs, or use any 16-bit Real Mode drivers or Terminate-and-Stay-Resident programs (TSRs), the information below will be helpful for managing your computer's memory.


Memory Structure
The memory on your computer is organized as follows:

The first megabyte of RAM on your computer, which comprises the lowest addresses (or numbered locations) in memory, is required by some Windows 95 system files and some DOS programs which are restricted to loading in space below 1 MB. Managing your computer's memory is a matter of keeping as much of this space as possible free to allow these items to load.

The first megabyte of memory is divided between Conventional Memory and the Upper Memory Blocks.

Conventional Memory
This is the first 640K of memory. Windows 95 only requires space in conventional memory for a few items, such as real-mode drivers/programs like Himem.sys (the extended memory manager), Win.com (the program that loads Windows' core components), and Vmm32.vxd (the Virtual Machine Manager which loads the 32-bit device drivers), all of which load before Windows 95. Additionally, most Windows 95-compliant applications require a small amount of memory space under 1 MB for their 16-bit task database (a collection of information about the application's processes).

Conventional Memory is also used by DOS and many 16-bit drivers and programs. If too many of these items load into Conventional Memory during the Real Mode startup phase, you may run out of space. If you are running DOS programs or any real-mode drivers, load as many of these as possible into the Upper Memory Blocks.

Upper Memory Blocks (UMBs)
The 384K of memory above 640K up to the first megabyte (which is 1024K) comprises the Upper Memory Blocks. There are six memory blocks, each of 64K. Specific blocks are used for such things as the VGA (video) RAM, the ROM BIOS (Read Only Memory for the Basic Input/Output System), and the ROM for VGA or any video adaptor, and extended memory managers (e.g., Emm386.exe). You can also load device drivers and TSRs into the UMBs to keep them out of conventional memory, to free more of it for drivers and programs that cannot load high (see below).

Extended Memory (XMS)
All memory over 1 MB is extended memory (or XMS for eXtended Memory Specification). Windows 95 manages this for all compliant applications and 32-bit device drivers. For DOS programs there are two areas of Extended Memory that need to be considered.

  • High Memory (or HMA for High Memory Area) is the first 64K of extended memory, less 16 bytes. This is exclusive to DOS and allows DOS to load above 1 MB (thus freeing more space in Conventional Memory). Check your Config.sys file to make sure that the line DOS=HIGH is there. If not, add it.
  • Expanded Memory (or EMS for Expanded Memory Specification) is created for DOS programs to allow them to load into Extended Memory. This is only for DOS programs running under MS DOS and must be managed by an expanded memory manager (e.g., Emm386.exe that installs with Windows 95). If you are running DOS programs in a Windows DOS session, Windows 95 will manage the Expanded Memory itself.


Memory Managers
There are two memory managers that install with Windows 95, Himem.sys and Emm386.exe.

Himem.sys
This is the primary memory manager. Windows 95 will not run without it. Himem.sys is loaded by Io.sys during start up prior to loading Windows 95. It could also be loaded earlier by Config.sys. If you're running Emm386.exe, you must load Himem.sys through Config.sys.

NOTE: The line that reads "DEVICE=C:\WINDOWS\HIMEM.SYS" must come before the line reading "DEVICE=C:\WINDOWS\EMM386.EXE".

Emm386.exe
Emm386.exe is not used by Windows 95, but might be needed when running DOS programs in a non-Windows DOS session, or if you want to load DOS TSRs or 16-bit device drivers into Upper Memory Blocks (UMBs) rather than Conventional Memory. Emm386.exe only loads through Config.sys, and only after Himem.sys loads.

NOTE: Emm386.exe is not needed when you run DOS programs within a Windows session. Windows 95 will manage the memory needs itself.


Loading High in Config.sys and Autoexec.bat
If you aren't using DOS programs or any 16-bit device drivers, you don't need to load anything high. If you are using these, you need to edit your Config.sys and Autoexec.bat files to make sure that DOS and as many 16-bit drivers and programs as possible load high.

To edit your Config.sys file

  1. Choose Start > Programs > MS-DOS Prompt.
  2. Type "cd\" to change to the root directory.
  3. Type "edit config.sys"
  4. Check to see if you have a line that reads

    DEVICE=C:\[path]\EMM386.EXE [NOEMS] or [RAM]

    where [PATH] specifies the path to the program (normally, C:\WINDOWS\EMM386.EXE) and [NOEMS] or [RAM] specifies one or another program switch required for DOS to manage the UMBs. [NOEMS] allows DOS to control the UMBs, but does not allow any use of Expanded Memory. [RAM] allows both DOS control of UMBs and use of Expanded Memory, but requires the use of 64k in Upper Memory.

    If the line isn't there, add it using the path and switch appropriate to your setup. For example,

    DEVICE=C:\WINDOWS\EMM386.EXE NOEMS

    Emm386.exe is used by DOS to manage the UMBs.

  5. Find the line that reads

    DOS=HIGH

    and type ",UMB" after it so that the line now reads

    DOS=HIGH,UMB

    This loads a portion of DOS into the High Memory Area. It also allows DOS to control the Upper Memory Blocks. Alternatively, you could type a second line that reads

    DOS=UMB

    Without one of these two lines in your Config.sys file, you cannot load anything into Upper Memory.

  6. Check all the lines that begin with

    DEVICE=

    These are your TSRs and device drivers; it's possible that many of these can be loaded into the UMBs. To do so, change the beginning of the line to read

    DEVICEHIGH=

    NOTE: not all TSRs and device drivers can load into Upper Memory. Check the documentation for the devices in question to see if they can load high before changing the load command.

To edit your Autoexec.bat file

  1. Choose Start > Programs > MS-DOS Prompt.
  2. Type "cd\" to change to the root directory.
  3. Type "edit autoexec.bat".
  4. Find any lines that load a DOS program. They will simply contain the name of the program, for example,

    DOSKEY

  5. Adding "LH" in front of it so that it reads

    LH DOSKEY

    would cause it to load high.

When there is no space in the UMBs, items in Config.sys or Autoexec.bat tagged to load high will load into Conventional Memory instead.


Legal Notice

THIS DATABASE AND THE DOCUMENTS INCLUDED THEREIN (COLLECTIVELY, THE "DATABASE") ARE PROVIDED FOR THE CONVENIENCE AND PRIVATE, INTERNAL USE OF ADOBE'S CUSTOMERS ONLY. YOU MAY NOT COPY OR DISTRIBUTE ANY PORTION OF THIS DATABASE FOR ANY PURPOSE, EXCEPT THAT YOU MAY MAKE ONE PRINTED COPY OF PORTIONS OF THIS DATABASE FOR YOUR OWN PERSONAL, INTERNAL USE ONLY, PROVIDED THIS ENTIRE DISCLAIMER AND COPYRIGHT NOTICE IS INCLUDED ON SUCH COPY.

THE USER OF THE INFORMATION PROVIDED IN THIS DATABASE ASSUMES ALL RISK OF ITS ACCURACY AND FOR ITS USE. THIS DATABASE IS BEING PROVIDED "AS-IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. ALL OTHER LIMITATIONS ON LIABILITY CONTAINED IN THE APPLICABLE SOFTWARE PRODUCT END USER LICENSE AGREEMENT SHALL APPLY. ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY FOR ERRORS OR OMISSIONS IN THE DATABASE. THIS DATABASE MAY INCLUDE TECHNICAL OR OTHER INACCURACIES OR TYPOGRAPHICAL ERRORS, AND CHANGES MAY BE PERIODICALLY ADDED TO THE INFORMATION HEREIN.

ADOBE SYSTEMS INCORPORATED DOES NOT GUARANTEE THAT SOLUTIONS SUGGESTED IN THIS DATABASE WILL BE EFFECTIVE IN THE USER'S PARTICULAR SITUATION. IF THE USER IS NOT FAMILIAR WITH ANY OF THE STEPS LISTED IN THE SOLUTION, ADOBE ADVISES THAT THE USER DOES NOT PROCEED WITHOUT FIRST CONSULTING ADDITIONAL RESOURCES.


| Home |

Copyright © 1998 Adobe Systems Incorporated.
All rights reserved.
Legal notices and trademark attributions.